package com.excel.poi.sax;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zw
 * @Description 解析出来的数据
 * @create /2022/3/25
 */
@Data
public class OneRowAnalysisFinishEvent {
    private Object data;

    public OneRowAnalysisFinishEvent(Object data) {
        this.data = data;
    }

    public OneRowAnalysisFinishEvent(String[] content, int length) {
        if (content != null) {
            List<String> ls = new ArrayList<String>(length);
            for (int i = 0; i <= length; i++) {
                ls.add(content[i]);
            }
            data = ls;
        }
    }

}
